/**
 * 命理计算路由
 * 定义命理相关的API端点
 */

const express = require('express');
const { 
  calculateBazi, 
  getTarotCards, 
  drawTarotCards, 
  interpretTarotCards 
} = require('../controllers/divination.controller');
const { authenticateToken } = require('../middleware/auth.middleware');

const router = express.Router();

// 八字计算路由，需要认证
router.post('/bazi/calculate', authenticateToken, calculateBazi);

// 塔罗牌路由
const tarotRoutes = require('./tarot.routes');
router.use('/tarot', tarotRoutes);

module.exports = router;